/**
 * All rights reserved by www.xmerge.cn
 */
package net.xfok.xmerge.provider;

import android.net.Uri;
import android.provider.BaseColumns;

/**
 * @author YangHua
 *
 */
public class RssItem {
	public static final String AUTHORITY  = "net.xfok.xmerge.RssItem";

	public static final class Rss implements BaseColumns {
        public static final Uri CONTENT_URI  = Uri.parse("content://"+AUTHORITY+"/rss");      
        public static final String RSS_DB_NAME="rss.db";
    	public static final String RSS_TABLE_NAME="rss";
    	public static final String RSS_COLUMN_ID="_id";
    	public static final String RSS_COLUMN_NAME="name";
    	public static final String RSS_COLUMN_CHARSET="charset";
    	public static final String RSS_COLUMN_URL="url";
    	public static final String COLUMNS[] = new String[] {
    		RSS_COLUMN_ID,RSS_COLUMN_NAME,RSS_COLUMN_CHARSET,RSS_COLUMN_URL};
    }
	
	private int id;
	private String name;
	private String charset;
	private String url;
	
	public RssItem(){
		
	}
	
	public RssItem(int id,String charset, String name, String url) {
		super();
		this.id=id;
		this.charset = charset;
		this.name = name;
		this.url = url;
	}

	public RssItem(String charset, String name, String url) {
		super();
		this.charset = charset;
		this.name = name;
		this.url = url;
	}
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCharset() {
		return charset;
	}

	public void setCharset(String charset) {
		this.charset = charset;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	
	public String toString() {
	    return name;
	}
	
}
